package com.woniuxy.goods.manaer.feigns;

import com.woniuxy.goods.module.user.User;
import org.springframework.stereotype.Component;

@Component
public class UserFeignClientFallback implements UserFeignClient{
    @Override
    public User loginApi(User user) {
        user.setId(-1);
        return user;
    }

    @Override
    public User findUserByKey(int id) {
        User user = new User();
        user.setId(-1);
        return user;
    }
}
